package com.aabte.testng;

import org.testng.annotations.Test;

/**
 * 超时测试
 */
public class TimeOutTest {

    @Test(timeOut = 300)
    public void testSuccess() throws InterruptedException {
        Thread.sleep(200);
    }

    @Test(timeOut = 300)
    public void testFailed() throws InterruptedException {
        Thread.sleep(400);
    }

}
